﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.facebook.net {
    import flash.events.*;
    import com.facebook.*;
    import com.facebook.events.*;
    import com.facebook.delegates.*;
    import flash.net.*;
    import com.facebook.data.*;
    import com.facebook.errors.*;
    import com.facebook.session.*;

    public class FacebookCall extends EventDispatcher {

        public var method:String;
        public var success:Boolean = false;
        public var args:URLVariables;
        public var delegate:IFacebookCallDelegate;
        public var error:FacebookError;
        public var useSession:Boolean = true;
        public var session:IFacebookSession;
        public var result:FacebookData;

        public function FacebookCall(_arg1:String="no_method_required", _arg2:URLVariables=null){
            this.method = _arg1;
            this.args = ((_arg2)!=null) ? _arg2 : new URLVariables();
        }
        facebook_internal function handleError(_arg1:FacebookError):void{
            this.error = _arg1;
            this.success = false;
            dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, false, null, _arg1));
        }
        facebook_internal function handleResult(_arg1:FacebookData):void{
            this.result = _arg1;
            this.success = true;
            dispatchEvent(new FacebookEvent(FacebookEvent.COMPLETE, false, false, true, _arg1));
        }
        facebook_internal function setRequestArgument(_arg1:String, _arg2:Object):void{
            if ((((_arg2 is Number)) && (isNaN((_arg2 as Number))))){
                return;
            };
            if (((((_arg1) && (!((_arg2 == null))))) && ((String(_arg2).length > 0)))){
                this.args[_arg1] = _arg2;
            };
        }
        facebook_internal function clearRequestArguments():void{
            this.args = new URLVariables();
        }
        facebook_internal function initialize():void{
        }
        protected function applySchema(_arg1:Array, ... _args):void{
            var _local3:uint = _arg1.length;
            var _local4:uint;
            while (_local4 < _local3) {
                this.setRequestArgument(_arg1[_local4], _args[_local4]);
                _local4++;
            };
        }

    }
}//package com.facebook.net 
